<div class="users form">
    
    <h2>Messages</h2>
	<table>
	<tr>
		<td class="actions" width="60">
		<?php echo $html->link(__('Received', true), array('controller'=>'messages','action' => 'index'))?>
		</td>
 		<td class="actions">
 		
 		<?php echo $this->Html->link(__('Compose New', true), array('action' => 'compose')); ?>
 		</td>
    </tr>
    </table>
    
    <?php echo $this->Form->create('Message');?>
    <?php
    	echo $this->Form->hidden('sender_id', array('value'=>$user['User']['id']));
	    echo $form->input('emails', array('label'=>'Send To:'));
    	echo $form->input('subject');
    	echo $form->input('body', array('type'=>'textarea'));
    	echo $form->end('Send');
    ?>
</div>
